$white:#fff;
$blue:#1891ff;
$border:#f1f1f1;
@mixin fixed-img($width) {
    position: relative;
    display: inline-block;
    width: $width;
    height: 0;
    padding-top: $width;
    vertical-align: middle;
    img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

@mixin ellipsis() {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.header {
    background: #1891ff;
    line-height: 70px;
    border: none;
    border-radius: 0;
    margin-bottom: 10px;
    .container {
        h1 {
            float: left;
            font-size: 28px;
            line-height: 70px;
            color: #fff;
            font-weight: 600;
        }
        .user-wrapper {
            li {
                p {
                    display: inline-block;
                    padding: 0 10px;
                    .icon-element {
                        color: $white;
                        font-size: 30px;
                        vertical-align: middle;
                    }
                    .user-name {
                        font-size: 16px;
                        color: $white;
                        display: inline-block;
                        width: 65px;
                        margin-left: 5px;
                    }
                }
            }
        }
    }
}

.message-wrapper {
    height: 60px;
    line-height: 60px;
    background: $white;
    .container {
        span {
            font-size: 16px;
            &.deal-time {
                font-size: 14px;
                color: #cfcfcf;
            }
        }
        .detail {
            color: #4b83b7
        }

        .icon-item {
            font-size: 30px;
            vertical-align: middle;
            color: $blue;
        }
    }
}

.info-center {
    background: $white;
    margin-top: 10px;
    .title {
        font-weight: 600;
        font-size: 20px;
        padding: 20px;
        border-bottom: 1px solid $border;
    }
    .info-center-left {
        padding-right: 0;
        font-size: 0;
        .left-content {
            display: inline-block;
            width: 50%;
            vertical-align: top;
            border-right: 1px solid $border;
            .user-wrapper {
                li {
                    padding: 10px 30px;
                    border-bottom: 1px solid $border;
                    font-size: 16px;
                    a {
                        font-size: 16px;
                        .msg-img {
                            margin-right: 10px;
                            @include fixed-img(30px);
                        }
                        .badge {
                            margin-top: 5px;
                        }
                    }
                    &:last-child {
                        border-bottom: none;
                    }
                }
                .user-content {
                    padding: 16px 50px;
                    .user-img {
                        @include fixed-img(68px);
                    }
                    .user-info {
                        display: inline-block;
                        vertical-align: middle;
                        margin-left: 5px;
                        .name {
                            font-size: 16px;
                            font-weight: 600;
                            color: $blue;
                        }
                    }
                }
            }
        }
        .right-content {
            display: inline-block;
            width: 50%;
            .email-wrapper {
                li {
                    border-bottom: 1px solid $border;
                    height: 51px;
                    line-height: 51px;
                    padding-left: 15px;
                    &:last-child {
                        border-bottom: none;
                    }
                    a {
                        font-size: 16px;
                        display: inline-block;
                        vertical-align: middle;
                        width: 100%;
                        @include ellipsis();
                        img {
                            vertical-align: middle;
                            margin-right: 5px;
                        }
                    }
                }
            }
        }
    }


    .link-wrapper {
        padding-left: 0;
        ul {
            li {
                padding: 26px;
                border-left: 1px solid $border;
                border-bottom: 1px solid $border;
                .link-img {
                    @include fixed-img(32px);
                }
                span {
                    font-size: 16px;
                    display: inline-block;
                    margin-left: 5px;
                    vertical-align: middle;
                }
            }
        }
    }
}

.recommend {
    background: $white;
    margin-top: 10px;
    .title {
        font-weight: 600;
        font-size: 20px;
        padding: 20px;
        border-bottom: 1px solid $border;
    }
    .recommend-icon__wrapper {
        .icon-content {
            li {
                padding: 20px 0;
                .push-img {
                    @include fixed-img(48px);
                }
                p {
                    @include ellipsis();
                }
            }
        }
    }
}

.news-wrapper {
    background: $white;
    margin-top: 10px;
    .title {
        font-weight: 600;
        font-size: 20px;
        padding: 20px;
        border-bottom: 1px solid $border;
    }
    .header-top {
        line-height: 40px;
        padding: 0 20px;
        .news-title {
            font-size: 18px;
            font-weight: 600;
            color: $blue;
        }
        .more {
            color: $blue;
            font-size: 14px;
            float: right;
        }
    }
    .list-wrapper {
        padding: 0 20px;
        li {
            line-height: 38px;
            vertical-align: middle;
            width: 100%;
            font-size: 16px;
            @include ellipsis();
            &::before {
                content: "";
                display: inline-block;
                width: 10px;
                height: 10px;
                background: #d0d0d0;
                border-radius: 5px;
                margin-right: 5px;
            }
        }
    }
}

.business-wrapper {
    background: $white;
    margin-top: 10px;
    .title {
        font-weight: 600;
        font-size: 20px;
        padding: 20px;
        border-bottom: 1px solid $border;
    }
    .icons-content {
        padding: 10px 30px;
        li {
            padding: 10px;
            font-size: 16px;
            .icons-img {
                @include fixed-img(57px);
                margin-right: 10px;
            }
        }
    }
}

.footer-wrapper {
    padding: 20px 0;
    p {
        line-height: 30px;
    }
}


@media (max-width:768px) {
    .navbar-toggle {
        margin-top: 18px;
    }
    .navbar-default .navbar-toggle {
        border-color: #fff;
        .icon-bar {
            background-color: #fff;
        }
    }
    .navbar-default .navbar-toggle:focus,
    .navbar-default .navbar-toggle:hover {
        background-color: transparent;
    }
    .header {
        .container {
            h1 {
                font-size: 20px;
                margin-left: 5px;
            }
        }
    }
    .message-wrapper {
        height:50px;
        line-height:50px;
        .container {
            .phone-message {
                @include ellipsis();
            }
            .icon-item {
                font-size: 25px;
            }
        }
    }

    .info-center {
        margin-left: -15px;
        margin-right: -15px;
        .title {
            padding:15px;
        }
        .row {
            margin: 0;
            .info-center-left {
                border-bottom: 1px solid $border;
                padding: 0;
                .left-content {
                    .user-wrapper {
                        .user-content {
                            padding: 25px 20px;
                            .user-img {
                                @include fixed-img(50px);
                            }
                            .user-info {
                                margin-left:5px;
                            }
                        }
                    }
                    li {
                        padding: 10px 15px;
                        font-size: 14px;
                    }
                }
                .right-content {
                    .email-wrapper {
                        li {
                            padding-left: 10px;
                        }
                    }
                }
            }
            .link-wrapper {
                padding: 0;
                ul {
                    li {
                        padding: 20px;
                        text-align: center;
                        span {
                            display: inline-block;
                            font-size: 14px;
                            width: 100%;
                            margin-left: 0;
                            @include ellipsis();
                        }
                    }
                }
            }
        }
    }
    .recommend {
        margin-left: -15px;
        margin-right: -15px;
        .title {
            padding:15px;
        }
        .row {
            margin: 0;
        }
    }
    .news-wrapper {
        margin-left: -15px;
        margin-right: -15px;
        .title {
            padding:15px;
        }
        .row {
            margin: 0;
            .header-top {
                padding: 0;
            }
            .list-wrapper {
                padding: 0;
            }
        }
    }
    .business-wrapper {
        margin-left: -15px;
        margin-right: -15px;
        .icons-content {
            padding: 10px;
            .row {
                margin: 0;
                li {
                    text-align: center;
                    .icons-img {
                        margin: 0;
                        @include fixed-img(40px);
                    }
                    span {
                        display: inline-block;
                        width: 100%;
                        font-size: 14px;
                        @include ellipsis();
                    }
                }
            }
        }
    }
    .footer-wrapper {
        padding: 20px 10px;
        p {
            font-size: 14px;
        }
    }
}

@media (max-width: 620px) {
    .img-banner {
        height:120px;
    }
}

@media (max-width:360px) {
    .navbar-default {
        .navbar-toggle {
            margin-right: 10px;
        }
    }

    .header {
        .container {
            h1 {
                font-size: 18px;
            }
        }
    }
    .message-wrapper {
        .container {
            span {
                font-size: 14px;
            }
            .icon-item {
                font-size: 18px;
            }
        }
    }
    .info-center {
        .row {
            .info-center-left {
                .left-content {
                    .user-wrapper {
                        li {
                            a {
                                font-size: 14px;
                                .msg-img {
                                    margin-right: 5px;
                                    @include fixed-img(20px);
                                }
                                .badge {
                                    margin-top: 0;
                                }
                            }
                        }
                        .user-content {
                            padding: 18px 10px;
                            .user-img {
                                width:45px;
                            }
                            .user-info {
                                margin-left:2px;
                            }
                        }
                    }
                }
            }
            .right-content .email-wrapper li {
                padding-left: 5px;
                height: 43px;
                line-height: 43px;
                a {
                    font-size: 14px;
                    img {
                        width: 20px;
                    }
                }
            }
        }
    }
    .news-wrapper {
        .list-wrapper {
            li {
                font-size: 14px;
            }
        }
    }
    .footer-wrapper {
        padding: 10px;
        p {
            font-size: 12px;
        }
    }
}